#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int fun(unsigned int x)
{
	int n = 0;
	while (x + 1)
	{
		n++;
		x = x | (x + 1);
	} 
	return n;
}
int main()
{
	int x = 2014;
	int n = fun(x);
	printf("%d", n);
}